package com.milotnt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.milotnt.pojo.MemberEntity;

import java.util.List;

public interface MemberMapper extends BaseMapper<MemberEntity> {

    //查询会员信息
    List<MemberEntity> findAll();

    //新增会员信息
    Boolean insertMember(MemberEntity member);

    //根据会员账号修改会员信息
    Boolean updateMemberByMemberAccount(MemberEntity member);

    //根据会员账号删除会员信息
    Boolean deleteByMemberAccount(Long memberAccount);

    //查询会员数
    Integer selectTotalCount();


}
